      SUBROUTINE SETUP
      RETURN
      END
C   HS43 (ROSEN-SUZUKI)
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=X(1)**2+X(2)**2+2.0D0*X(3)**2+X(4)**2 -5.D0*(X(1)+X(2))
     1   -21.D0*X(3)+7.D0*X(4)
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)=2.D0*X(1)-5.D0
      GRADF(2)=2.D0*X(2) - 5.D0
      GRADF(3)=4.D0*X(3)-21.D0
      GRADF(4)=2.D0*X(4) + 7.D0
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),HXI
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GXI
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1      
      IF(I - 2 )       100,200,300
 100  GXI=(-X(1)**2-X(2)**2-X(3)**2-X(4)**2-X(1)+X(2)-X(3)+X(4)
     1    +8.D0)
      RETURN
  200 GXI=(-X(1)**2-2.D0*X(2)**2-X(3)**2-2.D0*X(4)**2
     1    +X(1)+X(4)+10.D0)
      RETURN
  300 GXI=(-2.D0*X(1)**2-X(2)**2-X(3)**2-2.D0*X(1)+X(2)
     1    +X(4)+5.D0)
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I,J
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      IF ( GUNIT(1,I+NH) .EQ. 1 )RETURN
      CGRES(I+NH)=CGRES(I+NH)+1
      IF(I -2)       100,200,300
  100 GRADGI(1)=-2.D0*X(1)-1.D0
      GRADGI(2)=-2.D0*X(2)+1.D0
      GRADGI(3)=-2.D0*X(3)-1.D0
      GRADGI(4)=-2.D0*X(4)+1.D0
      GOTO 400
  200 GRADGI(1)=-2.D0*X(1)+1.D0
      GRADGI(2)=-4.D0*X(2)
      GRADGI(3)=-2.D0*X(3)
      GRADGI(4)=-4.D0*X(4)+1.D0
      GOTO 400
  300 GRADGI(1)=-4.D0*X(1)-2.D0
      GRADGI(2)=-2.D0*X(2)+1.D0
      GRADGI(3)=-2.D0*X(3)
      GRADGI(4)=1.D0
  400 DO     500      J=1,4
      GRADGI(J)=GRADGI(J)
  500 CONTINUE
      RETURN
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS43'/
      DATA X/NX*0.D0/
      DATA N/4/ , NH/0/ , NG/3/
      DATA DEL0/1.00D0/ ,TAU0/1.00D0/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,3)/-1,0,0,-1,0,0,-1,0,0,-1,0,0/
      END
